package com.example.testdemo.ripple;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.Toast;

import com.example.testdemo.R;

/**
 * Created by 颜 on 04.26.026.
 * 波纹效果
 */

public class RippleActivity extends Activity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_ripple);
        findViewById(R.id.rippleTextView).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Toast.makeText(RippleActivity.this,"执行OnClick",Toast.LENGTH_SHORT).show();
            }
        });
    }
}
